<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	
	<title>学生登录页面</title>
 	<style>
		.err{
			color:red;
		}
	</style>
</head>
<body style="background:url(http://dxyqsblz.hbu.cn/images/login/images/login_bg.png) no-repeat;background-size:100%;position:relative;">
	
	<form action="<%=request.getContextPath() %>/qjxt/login_student" method="post" style="width:300px;height:200px;margin-top:300px;margin-left:800px;position:absolute;">
		<p style="color:#4252d6;font-size: 25px;margin-bottom: 0;">学生登录</p><br />
		学　号：<input type="text" name="account" id="name" placeholder="请输入学号"  style=" background: #fff;width:200px;border:1px solid #333;height:30px;text-indent:10px;" /><br />
		密　码：<input type="password" name="password" id="pwd" placeholder="请输入密码"  style="margin-top:10px;background: #fff;width:200px;border:1px solid #333;height:30px;text-indent:10px;" /><br />
		<input type="submit" value="登录" style="background-color:blue;width:260px;text-align:center;height:35px; border:1px solid #333;margin-top:20px;color:#fff;font-size:16px;" />
		<div class="err">
			${msg} 
		</div>
	</form>
</body>

	<script type="text/javascript">
		var msg = "${msg}";
		if(msg=="登录成功"){
			alert("登录成功");
			window.setTimeout(function(){
				window.location.href="findStudentSgin";

			},500);
		}
		if(msg=="登录失败"){
			alert("登录失败：账号或密码错误");
		}
	</script>
</html>